package com.bjpowernode.service;

import com.bjpowernode.user.Provide;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface ProviderService {
    int addFood(String username, MultipartFile file, String foodName, Float foodPrice, Integer foodCount) throws IOException;

    int addFood(String username, InputStream in, String foodName, Float foodPrice, Integer foodCount) throws IOException;

    int delFood(Integer id);

    List<Provide> selectUserFood(String username);

    List<Provide> findProviderOrder(Integer id);

    List<Provide> loadAllFood();

    Provide loadProvideFood(Integer foodId);

    int updateCount(Integer foodId);
}
